use super::hitls_type::HITLS_Ctx;
pub const HITLS_SUCCESS: u32 = 0;
pub const HITLS_X509_V_OK: u32 = 0;
pub const HITLS_WANT_CONNECT: u32 = 1;
pub const HITLS_WANT_ACCEPT: u32 = 2;
pub const HITLS_WANT_READ: u32 = 3;
pub const HITLS_WANT_WRITE: u32 = 4;
pub const HITLS_ERR_TLS: u32 = 5;
pub const HITLS_ERR_SYSCALL: u32 = 6;
pub const HITLS_WANT_BACKUP: u32 = 7;
pub const HITLS_WANT_CLIENT_HELLO_CB: u32 = 8;
pub const HITLS_WANT_X509_LOOKUP: u32 = 9;
pub const HITLS_NULL_INPUT: HITLS_ERROR = 33619969;
pub const HITLS_INVALID_INPUT: HITLS_ERROR = 33619970;
pub const HITLS_INTERNAL_EXCEPTION: HITLS_ERROR = 33619971;
pub const HITLS_MEMALLOC_FAIL: HITLS_ERROR = 33619972;
pub const HITLS_MEMCPY_FAIL: HITLS_ERROR = 33619973;
pub const HITLS_UNREGISTERED_CALLBACK: HITLS_ERROR = 33619974;
pub const HITLS_CONFIG_FAIL_START: HITLS_ERROR = 33685505;
pub const HITLS_CONFIG_NO_SUITABLE_CIPHER_SUITE: HITLS_ERROR = 33685506;
pub const HITLS_CONFIG_UNSUPPORT_CIPHER_SUITE: HITLS_ERROR = 33685507;
pub const HITLS_CONFIG_INVALID_SET: HITLS_ERROR = 33685508;
pub const HITLS_CONFIG_NO_SUITABLE_SIGNATURE_ALGORITHM: HITLS_ERROR = 33685509;
pub const HITLS_CONFIG_NO_GROUPS: HITLS_ERROR = 33685510;
pub const HITLS_CONFIG_UNSUPPORT_SIGNATURE_ALGORITHM: HITLS_ERROR = 33685511;
pub const HITLS_CONFIG_UNSUPPORT_POINT_FORMATS: HITLS_ERROR = 33685512;
pub const HITLS_CONFIG_INVALID_VERSION: HITLS_ERROR = 33685513;
pub const HITLS_CONFIG_INVALID_LENGTH: HITLS_ERROR = 33685514;
pub const HITLS_CONFIG_NO_CERT: HITLS_ERROR = 33685515;
pub const HITLS_CONFIG_NO_PRIVATE_KEY: HITLS_ERROR = 33685516;
pub const HITLS_CONFIG_DUP_DH_KEY_FAIL: HITLS_ERROR = 33685517;
pub const HITLS_CFG_ERR_LOAD_CERT_FILE: HITLS_ERROR = 33685518;
pub const HITLS_CFG_ERR_LOAD_CERT_BUFFER: HITLS_ERROR = 33685519;
pub const HITLS_CFG_ERR_LOAD_KEY_FILE: HITLS_ERROR = 33685520;
pub const HITLS_CFG_ERR_LOAD_KEY_BUFFER: HITLS_ERROR = 33685521;
pub const HITLS_CFG_ERR_LOAD_CRL_FILE: HITLS_ERROR = 33685522;
pub const HITLS_CFG_ERR_LOAD_CRL_BUFFER: HITLS_ERROR = 33685523;
pub const HITLS_CONFIG_ERR_LOAD_GROUP_INFO: HITLS_ERROR = 33685524;
pub const HITLS_CONFIG_ERR_LOAD_SIGN_SCHEME_INFO: HITLS_ERROR = 33685525;
pub const HITLS_CONFIG_DUP_CUSTOM_EXT: HITLS_ERROR = 33685526;
pub const HITLS_CONFIG_ERR_MAX_LIMIT_CUSTOM_EXT: HITLS_ERROR = 33685527;
pub const HITLS_CM_FAIL_START: HITLS_ERROR = 33751041;
pub const HITLS_CM_LINK_FATAL_ALERTED: HITLS_ERROR = 33751042;
pub const HITLS_CM_LINK_CLOSED: HITLS_ERROR = 33751043;
pub const HITLS_CM_LINK_UNESTABLISHED: HITLS_ERROR = 33751044;
pub const HITLS_CM_LINK_UNSUPPORT_SECURE_RENEGOTIATION: HITLS_ERROR = 33751045;
pub const HITLS_MSG_HANDLE_FAIL_START: HITLS_ERROR = 33816577;
pub const HITLS_MSG_HANDLE_UNEXPECTED_MESSAGE: HITLS_ERROR = 33816578;
pub const HITLS_MSG_HANDLE_RANDOM_SIZE_ERR: HITLS_ERROR = 33816579;
pub const HITLS_MSG_HANDLE_UNSUPPORT_POINT_FORMAT: HITLS_ERROR = 33816580;
pub const HITLS_MSG_HANDLE_CIPHER_SUITE_ERR: HITLS_ERROR = 33816581;
pub const HITLS_MSG_HANDLE_UNSUPPORT_VERSION: HITLS_ERROR = 33816582;
pub const HITLS_MSG_HANDLE_STATE_ILLEGAL: HITLS_ERROR = 33816583;
pub const HITLS_MSG_HANDLE_UNSUPPORT_KX_ALG: HITLS_ERROR = 33816584;
pub const HITLS_MSG_HANDLE_UNSUPPORT_CERT: HITLS_ERROR = 33816585;
pub const HITLS_MSG_HANDLE_UNKNOWN_CURVE_TYPE: HITLS_ERROR = 33816586;
pub const HITLS_MSG_HANDLE_VERIFY_FINISHED_FAIL: HITLS_ERROR = 33816587;
pub const HITLS_MSG_HANDLE_VERIFY_SIGN_FAIL: HITLS_ERROR = 33816588;
pub const HITLS_MSG_HANDLE_INCORRECT_DIGEST_LEN: HITLS_ERROR = 33816589;
pub const HITLS_MSG_HANDLE_UNSUPPORT_NAMED_CURVE: HITLS_ERROR = 33816590;
pub const HITLS_MSG_HANDLE_UNSUPPORT_EXTENSION_TYPE: HITLS_ERROR = 33816591;
pub const HITLS_MSG_HANDLE_UNSUPPORT_CIPHER_SUITE: HITLS_ERROR = 33816592;
pub const HITLS_MSG_HANDLE_COOKIE_ERR: HITLS_ERROR = 33816593;
pub const HITLS_MSG_VERIFY_COOKIE_ERR: HITLS_ERROR = 33816594;
pub const HITLS_MSG_HANDLE_ERR_ENCODE_ECDH_KEY: HITLS_ERROR = 33816595;
pub const HITLS_MSG_HANDLE_ERR_ENCODE_DH_KEY: HITLS_ERROR = 33816596;
pub const HITLS_MSG_HANDLE_ERR_GET_DH_PARAMETERS: HITLS_ERROR = 33816597;
pub const HITLS_MSG_HANDLE_ERR_GET_DH_KEY: HITLS_ERROR = 33816598;
pub const HITLS_MSG_HANDLE_NO_PEER_CERTIFIACATE: HITLS_ERROR = 33816599;
pub const HITLS_MSG_HANDLE_ERR_NO_SERVER_CERTIFICATE: HITLS_ERROR = 33816600;
pub const HITLS_MSG_HANDLE_UNMATCHED_SEQUENCE: HITLS_ERROR = 33816601;
pub const HITLS_MSG_HANDLE_ILLEGAL_VERSION: HITLS_ERROR = 33816602;
pub const HITLS_MSG_HANDLE_ILLEGAL_CIPHER_SUITE: HITLS_ERROR = 33816603;
pub const HITLS_MSG_HANDLE_ILLEGAL_SELECTED_GROUP: HITLS_ERROR = 33816604;
pub const HITLS_MSG_HANDLE_ILLEGAL_EXTRENED_MASTER_SECRET: HITLS_ERROR = 33816605;
pub const HITLS_MSG_HANDLE_MISSING_EXTENSION: HITLS_ERROR = 33816606;
pub const HITLS_MSG_HANDLE_DUPLICATE_HELLO_RETYR_REQUEST: HITLS_ERROR = 33816607;
pub const HITLS_MSG_HANDLE_ALPN_PROTOCOL_NO_MATCH: HITLS_ERROR = 33816608;
pub const HITLS_MSG_HANDLE_ILLEGAL_PSK_LEN: HITLS_ERROR = 33816609;
pub const HITLS_MSG_HANDLE_ILLEGAL_IDENTITY_LEN: HITLS_ERROR = 33816610;
pub const HITLS_MSG_HANDLE_GET_UNSIGN_DATA_FAIL: HITLS_ERROR = 33816611;
pub const HITLS_MSG_HANDLE_ILLEGAL_SESSION_ID: HITLS_ERROR = 33816612;
pub const HITLS_MSG_HANDLE_SNI_UNRECOGNIZED_NAME: HITLS_ERROR = 33816613;
pub const HITLS_MSG_HANDLE_ALPN_UNRECOGNIZED: HITLS_ERROR = 33816614;
pub const HITLS_MSG_HANDLE_ILLEGAL_KEY_UPDATE_TYPE: HITLS_ERROR = 33816615;
pub const HITLS_MSG_HANDLE_SYS_TIME_FAIL: HITLS_ERROR = 33816616;
pub const HITLS_MSG_HANDLE_DTLS_CONNECT_TIMEOUT: HITLS_ERROR = 33816617;
pub const HITLS_MSG_HANDLE_UNSECURE_VERSION: HITLS_ERROR = 33816618;
pub const HITLS_MSG_HANDLE_UNSECURE_CIPHER_SUITE: HITLS_ERROR = 33816619;
pub const HITLS_MSG_HANDLE_RENEGOTIATION_FAIL: HITLS_ERROR = 33816620;
pub const HITLS_MSG_HANDLE_SESSION_ID_CTX_ILLEGAL: HITLS_ERROR = 33816621;
pub const HITLS_MSG_HANDLE_ENCRYPT_THEN_MAC_ERR: HITLS_ERROR = 33816622;
pub const HITLS_MSG_HANDLE_ILLEGAL_PSK_IDENTITY: HITLS_ERROR = 33816623;
pub const HITLS_MSG_HANDLE_PSK_USE_SESSION_FAIL: HITLS_ERROR = 33816624;
pub const HITLS_MSG_HANDLE_PSK_FIND_SESSION_FAIL: HITLS_ERROR = 33816625;
pub const HITLS_MSG_HANDLE_PSK_SESSION_INVALID_CIPHER_SUITE: HITLS_ERROR = 33816626;
pub const HITLS_MSG_HANDLE_PSK_INVALID: HITLS_ERROR = 33816627;
pub const HITLS_MSG_HANDLE_INVALID_CERT_REQ_CTX: HITLS_ERROR = 33816628;
pub const HITLS_MSG_HANDLE_HANDSHAKE_FAILURE: HITLS_ERROR = 33816629;
pub const HITLS_MSG_HANDLE_INVALID_COMPRESSION_METHOD: HITLS_ERROR = 33816630;
pub const HITLS_MSG_HANDLE_INVALID_EXTENDED_MASTER_SECRET: HITLS_ERROR = 33816631;
pub const HITLS_MSG_HANDLE_ERR_CLIENT_HELLO_FRAGMENT: HITLS_ERROR = 33816632;
pub const HITLS_MSG_HANDLE_ERR_INAPPROPRIATE_FALLBACK: HITLS_ERROR = 33816633;
pub const HITLS_MSG_HANDLE_DTLS_RETRANSMIT_NOT_TIMEOUT: HITLS_ERROR = 33816634;
pub const HITLS_MSG_HANDLE_ERR_WITHOUT_TIMEOUT_ACTION: HITLS_ERROR = 33816635;
pub const HITLS_MSG_HANDLE_ERR_TIMEOUT_REWIND: HITLS_ERROR = 33816636;
pub const HITLS_PACK_FAIL_START: HITLS_ERROR = 33882113;
pub const HITLS_PACK_UNSUPPORT_VERSION: HITLS_ERROR = 33882114;
pub const HITLS_PACK_UNSECURE_VERSION: HITLS_ERROR = 33882115;
pub const HITLS_PACK_UNSUPPORT_HANDSHAKE_MSG: HITLS_ERROR = 33882116;
pub const HITLS_PACK_NOT_ENOUGH_BUF_LENGTH: HITLS_ERROR = 33882117;
pub const HITLS_PACK_SESSIONID_ERR: HITLS_ERROR = 33882118;
pub const HITLS_PACK_COOKIE_ERR: HITLS_ERROR = 33882119;
pub const HITLS_PACK_CLIENT_CIPHER_SUITE_ERR: HITLS_ERROR = 33882120;
pub const HITLS_PACK_UNSUPPORT_KX_ALG: HITLS_ERROR = 33882121;
pub const HITLS_PACK_UNSUPPORT_KX_CURVE_TYPE: HITLS_ERROR = 33882122;
pub const HITLS_PACK_INVALID_KX_PUBKEY_LENGTH: HITLS_ERROR = 33882123;
pub const HITLS_PACK_SIGNATURE_ERR: HITLS_ERROR = 33882124;
pub const HITLS_PACK_PRE_SHARED_KEY_ERR: HITLS_ERROR = 33882125;
pub const HITLS_PARSE_FAIL_START: HITLS_ERROR = 33947649;
pub const HITLS_PARSE_UNSUPPORT_VERSION: HITLS_ERROR = 33947650;
pub const HITLS_PARSE_UNSUPPORT_HANDSHAKE_MSG: HITLS_ERROR = 33947651;
pub const HITLS_PARSE_INVALID_MSG_LEN: HITLS_ERROR = 33947652;
pub const HITLS_PARSE_DUPLICATE_EXTENDED_MSG: HITLS_ERROR = 33947653;
pub const HITLS_PARSE_COMPRESSION_METHOD_ERR: HITLS_ERROR = 33947654;
pub const HITLS_PARSE_SERVER_NAME_ERR: HITLS_ERROR = 33947655;
pub const HITLS_PARSE_CERT_ERR: HITLS_ERROR = 33947656;
pub const HITLS_PARSE_ECDH_PUBKEY_ERR: HITLS_ERROR = 33947657;
pub const HITLS_PARSE_ECDH_SIGN_ERR: HITLS_ERROR = 33947658;
pub const HITLS_PARSE_UNSUPPORT_KX_ALG: HITLS_ERROR = 33947659;
pub const HITLS_PARSE_UNSUPPORT_KX_CURVE_TYPE: HITLS_ERROR = 33947660;
pub const HITLS_PARSE_GET_SIGN_PARA_ERR: HITLS_ERROR = 33947661;
pub const HITLS_PARSE_UNSUPPORT_SIGN_ALG: HITLS_ERROR = 33947662;
pub const HITLS_PARSE_VERIFY_SIGN_FAIL: HITLS_ERROR = 33947663;
pub const HITLS_PARSE_DH_P_ERR: HITLS_ERROR = 33947664;
pub const HITLS_PARSE_DH_G_ERR: HITLS_ERROR = 33947665;
pub const HITLS_PARSE_DH_PUBKEY_ERR: HITLS_ERROR = 33947666;
pub const HITLS_PARSE_DH_SIGN_ERR: HITLS_ERROR = 33947667;
pub const HITLS_PARSE_UNSUPPORTED_EXTENSION: HITLS_ERROR = 33947668;
pub const HITLS_PARSE_CA_LIST_ERR: HITLS_ERROR = 33947669;
pub const HITLS_PARSE_EXCESSIVE_MESSAGE_SIZE: HITLS_ERROR = 33947670;
pub const HITLS_PARSE_PRE_SHARED_KEY_FAILED: HITLS_ERROR = 33947671;
pub const HITLS_PARSE_DUPLICATED_KEY_SHARE: HITLS_ERROR = 33947672;
pub const HITLS_PARSE_SESSION_TICKET_FAIL: HITLS_ERROR = 33947673;
pub const HITLS_REASS_FAIL_START: HITLS_ERROR = 34013185;
pub const HITLS_REASS_INVALID_FRAGMENT: HITLS_ERROR = 34013186;
pub const HITLS_CCS_FAIL_START: HITLS_ERROR = 34078721;
pub const HITLS_CCS_INVALID_CMD: HITLS_ERROR = 34078722;
pub const HITLS_ALERT_FAIL_START: HITLS_ERROR = 34144257;
pub const HITLS_ALERT_NO_WANT_SEND: HITLS_ERROR = 34144258;
pub const HITLS_REC_FAIL_START: HITLS_ERROR = 34209793;
pub const HITLS_REC_PMTU_TOO_SMALL: HITLS_ERROR = 34209794;
pub const HITLS_REC_ERR_BUFFER_NOT_ENOUGH: HITLS_ERROR = 34209795;
pub const HITLS_REC_ERR_TOO_BIG_LENGTH: HITLS_ERROR = 34209796;
pub const HITLS_REC_ERR_NOT_SUPPORT_CIPHER: HITLS_ERROR = 34209797;
pub const HITLS_REC_ERR_ENCRYPT: HITLS_ERROR = 34209798;
pub const HITLS_REC_ERR_AEAD_NONCE_PARAM: HITLS_ERROR = 34209799;
pub const HITLS_REC_ERR_SN_WRAPPING: HITLS_ERROR = 34209800;
pub const HITLS_REC_ERR_IO_EXCEPTION: HITLS_ERROR = 34209801;
pub const HITLS_REC_NORMAL_IO_BUSY: HITLS_ERROR = 34209802;
pub const HITLS_REC_NORMAL_RECV_BUF_EMPTY: HITLS_ERROR = 34209803;
pub const HITLS_REC_NORMAL_RECV_UNEXPECT_MSG: HITLS_ERROR = 34209804;
pub const HITLS_REC_NORMAL_RECV_DISORDER_MSG: HITLS_ERROR = 34209805;
pub const HITLS_REC_INVLAID_RECORD: HITLS_ERROR = 34209806;
pub const HITLS_REC_INVALID_PROTOCOL_VERSION: HITLS_ERROR = 34209807;
pub const HITLS_REC_BAD_RECORD_MAC: HITLS_ERROR = 34209808;
pub const HITLS_REC_DECODE_ERROR: HITLS_ERROR = 34209809;
pub const HITLS_REC_RECORD_OVERFLOW: HITLS_ERROR = 34209810;
pub const HITLS_REC_ERR_RECV_UNEXPECTED_MSG: HITLS_ERROR = 34209811;
pub const HITLS_REC_ERR_GENERATE_MAC: HITLS_ERROR = 34209812;
pub const HITLS_REC_NORMAL_IO_EOF: HITLS_ERROR = 34209813;
pub const HITLS_REC_ENCRYPTED_NUMBER_OVERFLOW: HITLS_ERROR = 34209814;
pub const HITLS_REC_ERR_DATA_BETWEEN_CCS_AND_FINISHED: HITLS_ERROR = 34209815;
pub const HITLS_UIO_FAIL_START: HITLS_ERROR = 34275329;
pub const HITLS_UIO_FAIL: HITLS_ERROR = 34275330;
pub const HITLS_UIO_IO_EXCEPTION: HITLS_ERROR = 34275331;
pub const HITLS_UIO_SCTP_IS_SND_BUF_EMPTY_FAIL: HITLS_ERROR = 34275332;
pub const HITLS_UIO_SCTP_ADD_AUTH_KEY_FAIL: HITLS_ERROR = 34275333;
pub const HITLS_UIO_SCTP_ACTIVE_AUTH_KEY_FAIL: HITLS_ERROR = 34275334;
pub const HITLS_UIO_SCTP_DEL_AUTH_KEY_FAIL: HITLS_ERROR = 34275335;
pub const HITLS_UIO_IO_TYPE_ERROR: HITLS_ERROR = 34275336;
pub const HITLS_CERT_FAIL_START: HITLS_ERROR = 34340865;
pub const HITLS_CERT_STORE_CTRL_ERR_SET_VERIFY_DEPTH: HITLS_ERROR = 34340866;
pub const HITLS_CERT_STORE_CTRL_ERR_ADD_CERT_LIST: HITLS_ERROR = 34340867;
pub const HITLS_CERT_STORE_CTRL_ERR_ADD_CRL_LIST: HITLS_ERROR = 34340868;
pub const HITLS_CERT_STORE_CTRL_ERR_CLEAR_CRL_LIST: HITLS_ERROR = 34340869;
pub const HITLS_CERT_ERR_X509_DUP: HITLS_ERROR = 34340870;
pub const HITLS_CERT_ERR_KEY_DUP: HITLS_ERROR = 34340871;
pub const HITLS_CERT_ERR_STORE_DUP: HITLS_ERROR = 34340872;
pub const HITLS_CERT_ERR_CHAIN_DUP: HITLS_ERROR = 34340873;
pub const HITLS_CERT_CTRL_ERR_GET_ENCODE_LEN: HITLS_ERROR = 34340874;
pub const HITLS_CERT_CTRL_ERR_GET_PUB_KEY: HITLS_ERROR = 34340875;
pub const HITLS_CERT_CTRL_ERR_GET_SIGN_ALGO: HITLS_ERROR = 34340876;
pub const HITLS_CERT_KEY_CTRL_ERR_GET_SIGN_LEN: HITLS_ERROR = 34340877;
pub const HITLS_CERT_KEY_CTRL_ERR_GET_TYPE: HITLS_ERROR = 34340878;
pub const HITLS_CERT_KEY_CTRL_ERR_GET_CURVE_NAME: HITLS_ERROR = 34340879;
pub const HITLS_CERT_KEY_CTRL_ERR_GET_POINT_FORMAT: HITLS_ERROR = 34340880;
pub const HITLS_CERT_KEY_CTRL_ERR_GET_SECBITS: HITLS_ERROR = 34340881;
pub const HITLS_CERT_KEY_CTRL_ERR_IS_ENC_USAGE: HITLS_ERROR = 34340882;
pub const HITLS_CERT_KEY_CTRL_ERR_IS_DIGITAL_SIGN_USAGE: HITLS_ERROR = 34340883;
pub const HITLS_CERT_KEY_CTRL_ERR_IS_KEY_CERT_SIGN_USAGE: HITLS_ERROR = 34340884;
pub const HITLS_CERT_KEY_CTRL_ERR_IS_KEY_AGREEMENT_USAGE: HITLS_ERROR = 34340885;
pub const HITLS_CERT_KEY_CTRL_ERR_GET_PARAM_ID: HITLS_ERROR = 34340886;
pub const HITLS_CERT_ERR_INVALID_KEY_TYPE: HITLS_ERROR = 34340887;
pub const HITLS_CERT_ERR_CHECK_CERT_AND_KEY: HITLS_ERROR = 34340888;
pub const HITLS_CERT_ERR_NO_CURVE_MATCH: HITLS_ERROR = 34340889;
pub const HITLS_CERT_ERR_NO_POINT_FORMAT_MATCH: HITLS_ERROR = 34340890;
pub const HITLS_CERT_ERR_NO_SIGN_SCHEME_MATCH: HITLS_ERROR = 34340891;
pub const HITLS_CERT_ERR_SELECT_CERTIFICATE: HITLS_ERROR = 34340892;
pub const HITLS_CERT_ERR_BUILD_CHAIN: HITLS_ERROR = 34340893;
pub const HITLS_CERT_ERR_ENCODE_CERT: HITLS_ERROR = 34340894;
pub const HITLS_CERT_ERR_PARSE_MSG: HITLS_ERROR = 34340895;
pub const HITLS_CERT_ERR_VERIFY_CERT_CHAIN: HITLS_ERROR = 34340896;
pub const HITLS_CERT_ERR_CREATE_SIGN: HITLS_ERROR = 34340897;
pub const HITLS_CERT_ERR_VERIFY_SIGN: HITLS_ERROR = 34340898;
pub const HITLS_CERT_ERR_ENCRYPT: HITLS_ERROR = 34340899;
pub const HITLS_CERT_ERR_DECRYPT: HITLS_ERROR = 34340900;
pub const HITLS_CERT_ERR_ADD_CHAIN_CERT: HITLS_ERROR = 34340901;
pub const HITLS_CERT_ERR_MGR_DUP: HITLS_ERROR = 34340902;
pub const HITLS_CERT_ERR_INSECURE_SIG_ALG: HITLS_ERROR = 34340903;
pub const HITLS_CERT_ERR_CA_KEY_WITH_INSECURE_SECBITS: HITLS_ERROR = 34340904;
pub const HITLS_CERT_ERR_EE_KEY_WITH_INSECURE_SECBITS: HITLS_ERROR = 34340905;
pub const HITLS_CERT_ERR_EXP_CERT: HITLS_ERROR = 34340906;
pub const HITLS_CERT_ERR_ENCODE: HITLS_ERROR = 34340907;
pub const HITLS_CERT_ERR_KEYUSAGE: HITLS_ERROR = 34340908;
pub const HITLS_CERT_ERR_INVALID_STORE_TYPE: HITLS_ERROR = 34340909;
pub const HITLS_CERT_ERR_X509_REF: HITLS_ERROR = 34340910;
pub const HITLS_CERT_ERR_INSERT_CERTPAIR: HITLS_ERROR = 34340911;
pub const HITLS_CERT_ERR_NO_KEYUSAGE: HITLS_ERROR = 34340912;
pub const HITLS_CERT_KEY_CTRL_ERR_IS_DATA_ENC_USAGE: HITLS_ERROR = 34340913;
pub const HITLS_CERT_KEY_CTRL_ERR_IS_NON_REPUDIATION_USAGE: HITLS_ERROR = 34340914;
pub const HITLS_CERT_CTRL_ERR_GET_SUBJECT_DN: HITLS_ERROR = 34340915;
pub const HITLS_CERT_STORE_CTRL_ERR_GET_VERIFY_DEPTH: HITLS_ERROR = 34340916;
pub const HITLS_CERT_CTRL_ERR_IS_SELF_SIGNED: HITLS_ERROR = 34340917;
pub const HITLS_CERT_CTRL_ERR_INVALID_CMD: HITLS_ERROR = 34340918;
pub const HITLS_CERT_STORE_CTRL_ERR_GET_VERIFY_FLAGS: HITLS_ERROR = 34340919;
pub const HITLS_CERT_STORE_CTRL_ERR_SET_VERIFY_FLAGS: HITLS_ERROR = 34340920;
pub const HITLS_CRYPT_FAIL_START: HITLS_ERROR = 34406401;
pub const HITLS_CRYPT_ERR_GENERATE_RANDOM: HITLS_ERROR = 34406402;
pub const HITLS_CRYPT_ERR_HMAC: HITLS_ERROR = 34406403;
pub const HITLS_CRYPT_ERR_DIGEST: HITLS_ERROR = 34406404;
pub const HITLS_CRYPT_ERR_ENCRYPT: HITLS_ERROR = 34406405;
pub const HITLS_CRYPT_ERR_DECRYPT: HITLS_ERROR = 34406406;
pub const HITLS_CRYPT_ERR_ENCODE_ECDH_KEY: HITLS_ERROR = 34406407;
pub const HITLS_CRYPT_ERR_CALC_SHARED_KEY: HITLS_ERROR = 34406408;
pub const HITLS_CRYPT_ERR_ENCODE_DH_KEY: HITLS_ERROR = 34406409;
pub const HITLS_CRYPT_ERR_HKDF_EXTRACT: HITLS_ERROR = 34406410;
pub const HITLS_CRYPT_ERR_HKDF_EXPAND: HITLS_ERROR = 34406411;
pub const HITLS_CRYPT_ERR_KEM_ENCAPSULATE: HITLS_ERROR = 34406412;
pub const HITLS_CRYPT_ERR_KEM_DECAPSULATE: HITLS_ERROR = 34406413;
pub const HITLS_CRYPT_ERR_DH: HITLS_ERROR = 34406414;
pub const HITLS_CRYPT_ERR_KDF: HITLS_ERROR = 34406415;
pub const HITLS_APP_FAIL_START: HITLS_ERROR = 34471937;
pub const HITLS_APP_ERR_TOO_LONG_TO_WRITE: HITLS_ERROR = 34471938;
pub const HITLS_APP_ERR_ZERO_READ_BUF_LEN: HITLS_ERROR = 34471939;
pub const HITLS_APP_ERR_WRITE_BAD_RETRY: HITLS_ERROR = 34471940;
pub const HITLS_SESS_FAIL_START: HITLS_ERROR = 34603009;
pub const HITLS_SESS_ERR_SESSION_ID_GENRATE: HITLS_ERROR = 34603010;
pub const HITLS_SESS_ERR_DECODE_TICKET: HITLS_ERROR = 34603011;
pub const HITLS_SESS_ERR_SESSION_TICKET_SIZE_INCORRECT: HITLS_ERROR = 34603012;
pub const HITLS_SESS_ERR_SESSION_TICKET_HMAC_FAIL: HITLS_ERROR = 34603013;
pub const HITLS_SESS_ERR_SESSION_TICKET_KEY_FAIL: HITLS_ERROR = 34603014;
pub const HITLS_SESS_ERR_ENC_VERIFY_RESULT_FAIL: HITLS_ERROR = 34603015;
pub const HITLS_SESS_ERR_ENC_MASTER_SECRET_FAIL: HITLS_ERROR = 34603016;
pub const HITLS_SESS_ERR_ENC_EXT_MASTER_SECRET_FAIL: HITLS_ERROR = 34603017;
pub const HITLS_SESS_ERR_ENC_SESSION_ID_FAIL: HITLS_ERROR = 34603018;
pub const HITLS_SESS_ERR_ENC_SESSION_ID_CTX_FAIL: HITLS_ERROR = 34603019;
pub const HITLS_SESS_ERR_ENC_HOST_NAME_FAIL: HITLS_ERROR = 34603020;
pub const HITLS_SESS_ERR_ENC_TIME_OUT_FAIL: HITLS_ERROR = 34603021;
pub const HITLS_SESS_ERR_ENC_VERSION_FAIL: HITLS_ERROR = 34603022;
pub const HITLS_SESS_ERR_ENC_CIPHER_SUITE_FAIL: HITLS_ERROR = 34603023;
pub const HITLS_SESS_ERR_ENC_START_TIME_FAIL: HITLS_ERROR = 34603024;
pub const HITLS_SESS_ERR_ENC_PSK_IDENTITY_FAIL: HITLS_ERROR = 34603025;
pub const HITLS_SESS_ERR_DEC_VERIFY_RESULT_FAIL: HITLS_ERROR = 34603026;
pub const HITLS_SESS_ERR_DEC_VERSION_FAIL: HITLS_ERROR = 34603027;
pub const HITLS_SESS_ERR_DEC_CIPHER_SUITE_FAIL: HITLS_ERROR = 34603028;
pub const HITLS_SESS_ERR_DEC_MASTER_SECRET_FAIL: HITLS_ERROR = 34603029;
pub const HITLS_SESS_ERR_DEC_PSK_IDENTITY_FAIL: HITLS_ERROR = 34603030;
pub const HITLS_SESS_ERR_DEC_START_TIME_FAIL: HITLS_ERROR = 34603031;
pub const HITLS_SESS_ERR_DEC_TIME_OUT_FAIL: HITLS_ERROR = 34603032;
pub const HITLS_SESS_ERR_DEC_HOST_NAME_FAIL: HITLS_ERROR = 34603033;
pub const HITLS_SESS_ERR_DEC_SESSION_ID_CTX_FAIL: HITLS_ERROR = 34603034;
pub const HITLS_SESS_ERR_DEC_SESSION_ID_FAIL: HITLS_ERROR = 34603035;
pub const HITLS_SESS_ERR_DEC_EXT_MASTER_SECRET_FAIL: HITLS_ERROR = 34603036;
pub const HITLS_SESS_ERR_BAD_SESSION: HITLS_ERROR = 34603037;
pub const HITLS_SESS_ERR_ENC_PEER_CERT_FAIL: HITLS_ERROR = 34603038;
pub const HITLS_SESS_ERR_DEC_PEER_CERT_FAIL: HITLS_ERROR = 34603039;
pub const HITLS_SESS_ERR_FLUSH_FAIL: HITLS_ERROR = 34603040;
pub const HITLS_SESS_ERR_NOT_FOUND: HITLS_ERROR = 34603041;
pub const HITLS_X509_FAIL_START: HITLS_ERROR = 34734081;
pub const HITLS_CERT_SELF_ADAPT_ERR: HITLS_ERROR = 34799617;
pub const HITLS_CERT_SELF_ADAPT_INVALID_TIME: HITLS_ERROR = 34799618;
pub const HITLS_CERT_SELF_ADAPT_UNSUPPORT_FORMAT: HITLS_ERROR = 34799619;
pub const HITLS_CERT_SELF_ADAPT_BUILD_CERT_CHAIN_ERR: HITLS_ERROR = 34799620;
pub const HITLS_CALLBACK_CERT_RETRY: HITLS_ERROR = 34865153;
pub const HITLS_CALLBACK_CERT_ERROR: HITLS_ERROR = 34865154;
pub const HITLS_CALLBACK_CLIENT_HELLO_ERROR: HITLS_ERROR = 34865155;
pub const HITLS_CALLBACK_CLIENT_HELLO_RETRY: HITLS_ERROR = 34865156;
pub const HITLS_CALLBACK_CLIENT_HELLO_INVALID_CALL: HITLS_ERROR = 34865157;
pub const HITLS_CALLBACK_CLIENT_HELLO_EXTENSION_NOT_FOUND: HITLS_ERROR = 34865158;
pub type HITLS_ERROR = ::std::os::raw::c_uint;
unsafe extern "C" {
    pub fn HITLS_GetError(ctx: *const HITLS_Ctx, ret: i32) -> i32;
}
